package com.dormitory.management.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel( description = "User实体类")
public class User {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("头像")
    private String avatar="https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif";

    @ApiModelProperty("创建时间")
    private String gmt_create;

    @ApiModelProperty("修改时间")
    private String gmt_modified;

    @ApiModelProperty("状态（0：正常，1：禁用）")
    @TableLogic
    private String status_id;

    @ApiModelProperty("排序")
    private String sort;
//    @ApiModelProperty("权限")
//    private String roles;
//    @ApiModelProperty("个人介绍")
//    private String introduction;
//    @ApiModelProperty("用户名")
//    private String name;
}
